home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
maptowb.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
37 lines
/*
* $VER: MapToWB 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Render the current image such that it can be displayed on a
* standard 4-color 640x200 Workbench screen.
*
*/
OPTIONS RESULTS
GetMain ; IF result = "" THEN EXIT /* make sure we have a buffer */
RequestFile '"Output Image Name..."' /* Get filename from user */
IF rc ~= 0 THEN EXIT /* Cancelled... */
output = result
SaveUndo ; Undo Off ; Redraw Off /* Save undo buffer, then turn it off */
Scale 640 200 /* Scale image to 640x200 */
Palette Rend /* Select render palette */
GrabPalette Workbench /* Grab workbench screen colors */
SetRange 8 0 3 /* Make range 8 the first four colors */
LockRange 8 On /* Lock the first four colors */
Render Go /* Render the image */
SaveRenderedAs ILBM output /* Save the resultant image */
Render Close /* Close render screen */
Undo On ; Undo Quiet ; Redraw On /* Restore original image */
EXIT /* All done */